package com.duoduo.mall.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.duoduo.mall.utils.PageUtils;
import com.duoduo.mall.utils.Query;

import com.duoduo.mall.dao.LogisticsDao;
import com.duoduo.mall.entity.LogisticsEntity;
import com.duoduo.mall.service.LogisticsService;


@Service("logisticsService")
public class LogisticsServiceImpl extends ServiceImpl<LogisticsDao, LogisticsEntity> implements LogisticsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LogisticsEntity> page = this.page(
                new Query<LogisticsEntity>().getPage(params),
                new QueryWrapper<LogisticsEntity>()
        );

        return new PageUtils(page);
    }

}